const bcrypt = require('bcryptjs')
const { sequelize } = require('../../../core/db');
const { Sequelize, Model } = require('sequelize');
const { NotFound, AuthFailed } = require('../../../core/httpException');

// 商品规格表
class ArtTags extends Model {

}

ArtTags.init({
    id: {
        type: Sequelize.INTEGER,
        primaryKey: true,
        autoIncrement: true
    },
  
    name: {
        type: Sequelize.TEXT
    },
    color: Sequelize.TEXT,

}, {
    sequelize,
    tableName: 'art_tags'
})


// ArtTags.create({ name:'Vue组件',color:'green' })
// ArtTags.create({ name:'Koa2',color:'#3963bc' })
// ArtTags.create({ name:'Vue',color:'#3963bc' })
// ArtTags.create({ name:'小程序',color:'#3963bc' })

module.exports = { ArtTags }